﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Backend/AdminLayout.master" AutoEventWireup="true"
	CodeFile="OrderDetail.aspx.cs" Inherits="Backend_Order_OrderDetail" %>

<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="AdminElegantFood" runat="Server">
	<div class="panel-heading">
		<h3 class="panel-title">
			<span class="glyphicon glyphicon-shopping-cart"></span>គ្រប់គ្រងការបញ្ជាទិញ
		</h3>
	</div>
	<div class="panel-body">
		<h4>
			<asp:Label ID="orderIdLabel" runat="server" CssClass="AdminTitle" Text="Order #000" />
		</h4>
		<span class="WideLabel">សរុបតម្លៃរួម:</span>
		<asp:Label ID="totalAmountLabel" runat="server" CssClass="ProductPrice" />
		<br />
		<br />
		<div class="row">
			<div class="col-md-6">
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4 class="panel-title">ទិន្នន័យលម្អិត</h4>
					</div>
					<div class="panel-body">
						<div class="form-group">
							<span class="WideLabel">ថ្ងៃបញ្ជាទិញ:</span>
							<asp:TextBox ID="dateCreatedTextBox" runat="server" CssClass="form-control" />
						</div>
						<div class="form-group">
							<span class="WideLabel">ថ្ងៃដឹកជញ្ជូន:</span>
							<asp:TextBox ID="dateShippedTextBox" runat="server" CssClass="form-control" />
						</div>
						<div class="form-group">
							<div class="checkbox">
								<asp:CheckBox ID="verifiedCheck" runat="server" />
								<span class="WideLabel">បានពិនិត្យ</span>
							</div>
						</div>
						<div class="form-group">
							<div class="checkbox">
								<asp:CheckBox ID="completedCheck" runat="server" />
								<span class="WideLabel">ដឹកជញ្ជូនរួចរាល់</span>
							</div>
						</div>
						<div class="form-group">
							<div class="checkbox">
								<asp:CheckBox ID="canceledCheck" runat="server" />
								<span class="WideLabel">លុបចោលការបញ្ជាទិញ</span>
							</div>
						</div>
						<div class="form-group">
							<span class="WideLabel">យោបល់បន្ថែម:</span>
							<asp:TextBox ID="commentsTextBox" runat="server" CssClass="form-control" />
						</div>
						<div class="form-group">
							<span class="WideLabel">ឈ្មោះអតិថិជន:</span>
							<asp:TextBox ID="customerNameTextBox" runat="server" CssClass="form-control" />
						</div>
						<div class="form-group">
							<span class="WideLabel">លេខទូរស័ព្ទ:</span>
							<asp:TextBox ID="customerPhoneTextBox" CssClass="form-control" runat="server" />
						</div>
						<div class="form-group">
							<span class="WideLabel">អ៊ីម៉ែល:</span>
							<asp:TextBox ID="customerEmailTextBox" CssClass="form-control" runat="server" />
						</div>
						<div class="form-group">
							<span class="WideLabel">អាស័យដ្ឋាន:</span>
							<asp:TextBox ID="shippingAddressTextBox" CssClass="form-control" runat="server" />
						</div>
					</div>
				</div>
			</div>
			<div class="col-md-6">
				<div class="panel panel-default">
					<div class="panel-heading">
						<h4 class="panel-title">
							ការកំណត់
						</h4>
					</div>
					<div class="panel-body">
						<asp:Button ID="editButton" runat="server" Text="កែប្រែ" Width="100px" CssClass="btn btn-sm btn-warning" OnClick="editButton_Click" />
						<asp:Button ID="updateButton" runat="server" Text="រក្សាទុក" Width="100px" CssClass="btn btn-sm btn-info" OnClick="updateButton_Click" />
						<asp:Button ID="cancelButton" runat="server" Text="បោះបង់" Width="100px" CssClass="btn btn-sm btn-default" OnClick="cancelButton_Click" />
						<br />
						<br />
						<asp:Button ID="markVerifiedButton" runat="server" CssClass="btn btn-sm btn-primary" Text="Mark Order as Verified"
							Width="310px" OnClick="markVerifiedButton_Click" /><br /><br />
						<asp:Button ID="markCompletedButton" runat="server" CssClass="btn btn-sm btn-info" Text="Mark Order as Completed"
							Width="310px" OnClick="markCompletedButton_Click" /><br /><br />
						<asp:Button ID="markCanceledButton" runat="server" CssClass="btn btn-sm btn-success" Text="Mark Order as Canceled"
							Width="310px" OnClick="markCanceledButton_Click" /><br />
					</div>
				</div>
			</div>
		</div>
	
		<p>
			ទំនិញដែលបានបញ្ជាទិញ
		</p>
		<asp:GridView ID="grid" runat="server" AutoGenerateColumns="False" CssClass="table table-hover table-striped" GridLines="None">
			<Columns>
				<asp:BoundField DataField="ProductID" HeaderText="លេខកូដ" ReadOnly="True" SortExpression="ProductID" />
				<asp:BoundField DataField="ProductName" HeaderText="ឈ្មោះទំនិញ" ReadOnly="True"
					SortExpression="ProductName" />
				<asp:BoundField DataField="Quantity" HeaderText="បរិមាណ" ReadOnly="True" SortExpression="Quantity" />
				<asp:BoundField DataField="UnitCost" HeaderText="តម្លៃរាយ" DataFormatString="{0:c}" ReadOnly="True" SortExpression="UnitCost" />
				<asp:BoundField DataField="Subtotal" HeaderText="សរុប" ReadOnly="True" DataFormatString="{0:c}" SortExpression="Subtotal" />
			</Columns>
		</asp:GridView>
	</div>
</asp:Content>
